package cn.jnetty.ioc.mapping;
import cn.jnetty.api.handler.RequestDefinitionBean;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import java.lang.reflect.Method;

/**
 * @author 猪哥亮
 * @email 1030681978@qq.com
 * @date 2020/4/6 18:50
 * 描述：
 */
public class JRequestDefinitionBean implements RequestDefinitionBean {
    private Logger log = LoggerFactory.getLogger(JRequestDefinitionBean.class);
    private Object obj;
    private String path;
    private Method method;
    public JRequestDefinitionBean() {
    }

    public JRequestDefinitionBean(Object obj, String path, Method method) {
        this.obj = obj;
        this.path = path;
        this.method = method;
        init();
    }
    private void init(){
    }
    @Override
    public Object getObj() {
        return obj;
    }

    public void setObj(Object obj) {
        this.obj = obj;
    }

    @Override
    public String getPath() {
        return path;
    }


    public void setPath(String path) {
        this.path = path;
    }

    @Override
    public Method getMethod() {
        return method;
    }
    public void setMethod( Method method){
        this.method = method;
    }
}
